package cc.idoone.spring_boot_hello.amqp.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author hemj
 * @since 2017/10/16
 */
// 接收方式4
@Component
@RabbitListener(queues = "spring-boot-queue1")
public class RabbitReceiverListener {

	@RabbitHandler
	public void process(String message) {
		System.out.println("RabbitReceiverListener: " + message);
	}

}
